package cn.whx.hrm;

import cn.whx.hrm.doc.CourseDoc;
import cn.whx.hrm.query.CourseDocQuery;
import cn.whx.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "SEARCH-SERVER",fallbackFactory = CourseDocFallBackFactory.class)
public interface CourseClient {
    @PostMapping("/search/courseDoc")
    AjaxResult add(@RequestBody CourseDoc courseDoc);
    @PostMapping("/search/delete/{id}")
    AjaxResult delete(@PathVariable("id")Long id);
    @PostMapping("/search/queryCourses")
     AjaxResult query(@RequestBody CourseDocQuery query);

}
